package com.ruoyi.web.core.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author longhunpomie - 蒯兴鹏
 * @declaration
 * @email 3314028177@qq.com
 * @create 2025/3/28-16:36
 */
@Configuration
public class AlgorithmConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry)
    {
//        /** 本地文件上传路径 */
//        registry.addResourceHandler("/algorithm" + "/**")
//                .addResourceLocations("file:" + System.getProperty("user.dir") + "/algorithm" + "/");

        registry.addResourceHandler("/wiki" + "/**")
                .addResourceLocations("file:" + System.getProperty("user.dir") + "/wiki" + "/");
    }
}
